<?php
/**
 * 获取护理统计item 模型
 * @authors xiadx (xiadx@zpdchina.com)
 * @date    2017-03-06 14:45:05
 * @version $Id$
 */

class DataHulitongjiItemModel extends BaseModel {

	/**
     * 返回给终端的可执行sql语句的字段名称数组
     * @var [type]
     */
    public $_field_arr = ['id','tongji_item_code','tongji_item_name','tongji_item_alias', 'tongji_item_type', 'source_type', 'is_include', 'extend1', 'extend2'];

    public function ls($value='')
    {
    	$field_str = implode(',', $this->_field_arr);
    	$query = DB::select($field_str)
    				->from('data_hulitongji_item')
    				->where('yiyuan_id', '=', $this->yiyuan_id)
                    ->execute()
                    ->as_array();
		return $query;
    }
}
